﻿using Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.IRepositories
{
    public interface IRoleRepository : IRepository<Role>
    {
        Role GetById(Int32 id);

        IQueryable<Role> GetAll(string key);

        IQueryable<Role> GetPageList(string SearchKeyWords, int PageSize, int PageCurrent, string OrderField, bool OrderDirection = true);
        bool AddOrUpdate(Role model);

        bool DeleteById(int id);
    }
}
